package com.example.demo.service.proxy;

import com.example.demo.service.AccountService;

public class AccountServiceProxy implements AccountService {
  private AccountService accountService;

  public AccountServiceProxy(AccountService accountService) {
    this.accountService = accountService;
  }

  @Override
  public void sayYouWant() {
    before();
    accountService.sayYouWant();
  }

  public void before(){
    System.out.println("this is before static proxy");
  }
}
